<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColToGoodsSpuTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('goods_spu', function(Blueprint $table)
        {
            $table->string('size_spu_name')->nullable()->comment('尺码属性')->after('status');
            $table->string('color_spu_name')->nullable()->comment('颜色属性')->after('status');
            $table->string('specification_code')->nullable()->comment('规格编码')->after('status');
            $table->integer('img_id')->nullable()->comment('属性图片')->after('status');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
